package com.big.base.converter;


import com.big.base.pojo.dto.User;
import com.big.base.pojo.dto.UserDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public interface JobConverter {
    JobConverter INSTANCE = Mappers.getMapper(JobConverter.class);

    @Mappings(@Mapping(target = "name", source = "name"))
    UserDTO trans(User user);
}
